package cn.bupt.adt.service;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.bupt.adt.entity.autogenerate.DoctorAppUser;
import cn.bupt.adt.entity.autogenerate.DoctorAppUserExample;
import cn.bupt.adt.entity.autogenerate.FirstLevelInspectionItem;
import cn.bupt.adt.entity.autogenerate.InspectOrder;
import cn.bupt.adt.entity.autogenerate.InspectOrderView;
import cn.bupt.adt.entity.autogenerate.InspectView;
import cn.bupt.adt.entity.autogenerate.Inspetion;
import cn.bupt.adt.entity.autogenerate.OrderView;
import cn.bupt.adt.entity.autogenerate.SecondLevelView;
import cn.bupt.adt.model.DoctorModel;
import cn.bupt.adt.model.InspectAllOrderModel;
import cn.bupt.adt.model.InspectLevelModel;
import cn.bupt.adt.model.InspectOrderModel;

@Service
public interface IinspectOrderService {

	public List<InspectOrderModel> getAllInspectOrders();	

	public List<InspectOrderModel> getOrderByName(String content) ;

	public List<InspectOrderModel> getOrderByNumber(String content) ;

	InspectOrderView getOrderViewById(int id);

	boolean addOrder(InspectOrder order);

	boolean updateOrder(InspectOrderView order);

	List<SecondLevelView> getSecondLevelByfirstLevelId(Integer firstLevelId);

	List<FirstLevelInspectionItem> getAllFirstLevelInspectionItem();

	List<InspectOrderView> getAllInspectItemOrders(String secondLevelId);

	Inspetion getInspetionByChecckId(Integer checkId);

	boolean takeOrder(InspectOrder order, Integer inspectionId);

	List<InspectView> getInspectItemsByFirstLevel(String firstLevelId);

	List<InspectView> getInspectItemsBySecondLevel(String secondLevelId);

	List<InspectView> getAllInspectItems();

	InspectView getInspectViewById(int id);

	public boolean addOrder(List<InspectOrder> orders);

	List<InspectLevelModel> getLevelInspectionItem();

	List<InspectLevelModel> getSubType(Integer parentId);

	List<InspectOrderView> getAllInspectItemOrders();

	List<InspectOrder> getAllInspectItemOrdersInInspectOrder();

	List<InspectAllOrderModel> getAllInspectItemsOrders();

	InspectOrder getOrderById(int id);

}
